package com.cc.demo.controller;

import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cc.demo.annotation.OperationLogDetail;


@RestController
@RequestMapping("test")
public class TestController {

	private Logger logger = Logger.getLogger(TestController.class);
	
	@GetMapping(value="/upload")
	@OperationLogDetail
	public String pictureUpload(){
		logger.info("记录日志");
		return "SUCCESS";
	}
	

}
